#pragma once
#include "IEventListener.h"
#include "buttonwidget.h"


class ButtonWidgetRect :
	public ButtonWidget, public IEventListener
{
	int m_width;
	int m_height;

	void make_abstract() {};
public:
	ButtonWidgetRect(void);
	~ButtonWidgetRect(void);

	void AcceptEvent(WidgetEvent *evt);
	int GetHeight() { return m_height; }
	int GetWidth() { return m_width; }
	void SetHeight(int h) { m_height = h; }
	void SetWidth(int w) { m_width = w; }
	void SetSize(int w, int h) { m_width = w; m_height = h; };
	bool IsInside(int x, int y);
};

